function GetTyDe(){
	var dlist={}
	$.ajax({
		url: "http://114.55.145.243:8080/liantu/TogetherServlet/getTogetherByTid?",
		async: false,
		data:{tog_id:oneValues()},
		xhrFields: {
			withCredentials: true
		},
		success: function(data) {
			if(data.data) {
				dlist = data.data
			} else
				alert(data.msg)
		},
		dataType: "json"

	})
	return dlist
}


function GetByDe(){
	var tlist={}
	$.ajax({
		url: "http://114.55.145.243:8080/liantu/PartnerServlet/getPartnerByTid",
		async: false,
		data:{par_tid:oneValues()},
		
		xhrFields: {
			withCredentials: true
		},
		success: function(data) {
			if(data.data) {
				tlist = data.data
			}
		},
		dataType: "json"

	})
	return tlist
}


function Getcount(){
	var tlist;
	$.ajax({
		url: "http://114.55.145.243:8080/liantu/PartnerServlet/getPartnerCountByTid",
		async: false,
		data:{par_tid:oneValues()},
		
		xhrFields: {
			withCredentials: true
		},
		success: function(data) {
			if(data.status) {
				tlist = data.data
			} else
				alert(data.msg)
		},
		dataType: "json"

	})
	return tlist+1
}

function joinTong(tel){
	var s=$("#logining").html()
	if(s=="登录"){
		alert("请先登录")
		return
	}
	var uid=$("#Luser").html()
	$.ajax({
		url: "http://114.55.145.243:8080/liantu/PartnerServlet/addPartner",
		async: false,
		data:{par_tid:oneValues(),par_userid:uid},
		
		xhrFields: {
			withCredentials: true
		},
		success: function(data) {
			if(data.data) {
				alert("报名成功")
				location.reload()

			} else
				alert(data.msg)
		},
		dataType: "json"

	})

}